package com.mytest.bean;

import com.mytest.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {

    @Reference//loadbalance = "onlyFirst" 负责均衡策略为onlyFirst自定义的
    private HelloService  helloService;
    /*public String  sayHello(String name){
        return  helloService.sayHello(name);
    }*/

    public String sayHelloA(String name){
        return helloService.sayHelloA(name);
    }
    public String sayHelloB(String name){
        return helloService.sayHelloB(name);
    }
    public String sayHelloC(String name){
        return helloService.sayHelloC(name);
    }


}
